#!/Users/meihao/.virtualenvs/meiduo_mall/bin/python

import sys
sys.path.insert(0, '../../')


import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings.dev')

# 初始化django
import django
django.setup()


from goods.models import SKU
from celery_tasks.html.tasks import generate_detail_html

if __name__ == '__main__':
    skus = SKU.objects.all()
    for sku in skus:
        print(sku.id)
        generate_detail_html.delay(sku.id)